projects
/
ostree.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
66123fc
)
ostree-prepare-root: remove duplicate transient directory
author
Will Sabransky
<wsabransky89@gmail.com>
Sun, 20 Jul 2025 22:05:44 +0000
(17:05 -0500)
committer
GitHub
<noreply@github.com>
Sun, 20 Jul 2025 22:05:44 +0000
(17:05 -0500)
Only create the transient etc directory once to prevent failures due to directory existence.
src/libotcore/otcore-prepare-root.c
patch
|
blob
|
history
diff --git
a/src/libotcore/otcore-prepare-root.c
b/src/libotcore/otcore-prepare-root.c
index a52d711d26aa8cf5b8c1c480e3e100a3f8de1005..893ef555e1c4e772b0f257c01276f70c230c9df5 100644
(file)
--- a/
src/libotcore/otcore-prepare-root.c
+++ b/
src/libotcore/otcore-prepare-root.c
@@
-408,7
+408,7
@@
otcore_mount_etc (GKeyFile *config, GVariantBuilder *metadata_builder, const cha
{
const char *path;
int mode;
- } subdirs[] = { {
ovldir, 0700 }, {
upperdir, 0755 }, { workdir, 0755 } };
+ } subdirs[] = { { upperdir, 0755 }, { workdir, 0755 } };
for (int i = 0; i < G_N_ELEMENTS (subdirs); i++)
{
if (mkdirat (AT_FDCWD, subdirs[i].path, subdirs[i].mode) < 0)